const api = require('../../../ws_micro_shop/utils/api.js');
const app = getApp();

Page({
  data: {
    height: wx.systemInfo.windowHeight,
    theme: app.themeData,
  },
  onLoad(opts) {
    let options = opts || {};
    this.setData({
      price: options.price,
      payment: options.payment,
      typeId: options.type_id || null,
    })
  },
  collectFormId(e) {
    app.collectFormId(e);
  },
  bindsucc() {
    let url = '/ws_micro_shop_seller/pages/cash-detail/cash-detail?type_id=' + this.data.typeId;
    app.util.navigateTo(url, {}, true);
  }
});
